using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace Compact13PrototypeApp
{
    public partial class Compact13ToolsPrototypeApp : Form
    {
        public Compact13ToolsPrototypeApp()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void NotYetImplemented()
        {
            MessageBox.Show("Function not yet implemented", "Compact13Notepad");
        }


        #region FileMenu

        private void menuFile_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemNew_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemOpen_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemSave_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemSaveAs_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemPageSetup_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemPrint_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemExit_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        #endregion

 
        #region Edit

        private void menuEdit_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }


        private void menuItemUndo_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemCut_Click(object sender, EventArgs e)
        {
            //string str = richTextBox1.SelectedText;
            //Clipboard.SetDataObject( (object) str);
            //richTextBox1.SelectedText = "";
            NotYetImplemented();
        }

        private void menuItemCopy_Click(object sender, EventArgs e)
        {
            //string str = richTextBox1.SelectedText;
            //Clipboard.SetDataObject(str);
            NotYetImplemented();
        }

        private void menuItemPaste_Click(object sender, EventArgs e)
        {
            //IDataObject iData = Clipboard.GetDataObject();

            //// Determines whether the data is in a format you can use. 
            //if (iData.GetDataPresent(DataFormats.Text))
            //{
            //    // Yes it is, so display it in a text box.
            //    richTextBox1.SelectedText = (String)iData.GetData(DataFormats.Text);
            //}
            //else
            //    richTextBox1.SelectedText = "";
            NotYetImplemented();
        }

        private void menuItemDelete_Click(object sender, EventArgs e)
        {
            //richTextBox1.SelectedText = "";
            NotYetImplemented();
            NotYetImplemented();
        }

        private void menuItemFind_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemFindNext_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemReplace_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuGoTo_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemSelectAll_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemTimeDate_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        #endregion
    
        
        #region Help

        private void menuHelp_Click(object sender, EventArgs e)
        {

        }

        private void menuItemHelp_Click(object sender, EventArgs e)
        {
            NotYetImplemented();
        }

        private void menuItemAbout_Click(object sender, EventArgs e)
        {
            AboutBox.ShowAsDialog();
        }
       
        #endregion


        private void menuItem2_Click(object sender, EventArgs e)
        {
            menuItem2.Enabled = false;
            menuItem3.Enabled = true;
            Interop.SipShowIM(1);
        }

        private void menuItem3_Click(object sender, EventArgs e)
        {
            menuItem2.Enabled = true;
            menuItem3.Enabled = false;
            Interop.SipShowIM(0);
        }

    }
}
